import {request} from '@/utils/request';
import {ResponseData ,User} from '@/api/type'

function login(username:string, password:string): Promise<ResponseData<User>>{
    return request.post('/user/login',{
        username: username,
        password:  password
    })
}

export {
     login
}